package com.cy.pj.sys.service;

import com.cy.pj.common.bo.PageObject;
import com.cy.pj.sys.entity.SysRole;
import com.cy.pj.sys.vo.SysRoleMenuVo;

/**
 * @author LiuXu
 * @create 2020-07-20 9:36
 */
public interface SysRoleService {
    PageObject<SysRole> findPageObjects(String name, Integer pageCurrent);

    int deleteObject(Integer id);

    SysRoleMenuVo findObjectById(Integer id);

    //保存角色对象
    int saveObject(SysRole entity, Integer[] menuIds);

    //更新角色对象
    int updateObject(SysRole entity, Integer[] menuIds);
}
